<?php

$con=mysqli_connect("localhost","root","admin");
// Check connection
if (mysqli_connect_errno())
  {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }

// Create table
$sql= "CREATE TABLE HOPEWw.ECD_NUTRITION_PERFOMANCE(
  recording_date DATE NOT NULL,
  ECD_code INT NOT NULL,
  score_for_foodStorage FLOAT(3,2) NOT NULL,
  score_for_feeding_correctMenu FLOAT(3,2) NOT NULL,
  total_score FLOAT(3,2) NOT NULL ,
  perfomance_score VARCHAR(20) NOT NULL,
 
  
  
  PRIMARY KEY (recording_date,ECD_code )
   )";
// Execute query
if (mysqli_query($con,$sql))
  {
  echo "Table Parenting training created successfully";
  }
else
  {
  echo "Error creating table: " . mysqli_error($con);
  }
?>
